using System;
using System.Data;
using System.Web.UI.WebControls;
using Framework.Library;
using Framework.Library.Components.Modules;
using Framework.Modules.LinkSite.Library.DataAccess;

namespace Framework.Module.LinkSite.Web
{
	public partial class WebLink : ModuleControlBase
	{
		protected void Page_Load(object sender, EventArgs e)
		{
			if(!Page.IsPostBack)
			{
				DataTable dtLinks = LinkDB.GetAll(AppEnv.GetLanguage());
                dropWebLink.DataSource = dtLinks;
				dropWebLink.DataBind();
				dropWebLink.Items.Insert(0, new ListItem(MultiLanguage.Initialize.GetString("LinkSite"), "#"));
                dropWebLink.Attributes.Add("onchange", "javascript:go(this);");
                 
                
			}
		}
	}
}